APICallError

class APICallError(message: String, val url: String, val requestBodyValues: Any? = null, val statusCode: Int? = null, val responseHeaders: Map<String, String>? = null, val responseBody: String? = null, cause: Throwable? = null, val isRetryable: Boolean = statusCode == 408 || statusCode == 409 || statusCode == 429 || (statusCode ?: 0) >= 500, val data: Any? = null) : AiSdkException

Constructors

Link copied to clipboard
constructor(message: String, url: String, requestBodyValues: Any? = null, statusCode: Int? = null, responseHeaders: Map<String, String>? = null, responseBody: String? = null, cause: Throwable? = null, isRetryable: Boolean = statusCode == 408 || statusCode == 409 || statusCode == 429 || (statusCode ?: 0) >= 500, data: Any? = null)

Properties

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard
val data: Any?
Link copied to clipboard
Link copied to clipboard
expect open val message: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val url: String